#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by Zxc on 11/29/22 10:08 PM .
from rembg import remove

# 自己网上找一张图片
input_path = 'girl.jpeg'
output_path = 'girl_rmbg.png'

with open(input_path, 'rb') as i:
    with open(output_path, 'wb') as o:
        input = i.read()
        output = remove(input)
        o.write(output)
if __name__ == '__main__':
    pass
